<?php
@$name=$_REQUEST["name"];



$pdo = new PDO("mysql:dbname=caipin;host=127.0.0.1;charset=UTF8","root","root");
$sql = $pdo->prepare("select * from cai;");
$sql->execute();
$arr = $sql->fetch(PDO::FETCH_NAMED);






$j=array(

"太极殿",
"云霄殿",
"无极殿",
"皮香殿",
"昆仑殿",
"五庄观",
"盘丝洞",
"牛魔洞",
"花果山",
);
?>
<html>
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link type="text/css" rel="stylesheet" href="css/bootstrap.css">
    <link type="text/css" rel="stylesheet" href="css/bootstrap-theme.css">
    <script src="js/jQuery文件.js"></script>
    <script src="js/bootstrap.js"></script>
</head>
<body>





<nav class="navbar navbar-default">
    <div class="container-fluid" >
        <div class="navbar-header" >

                        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                            <span class="sr-only">Toggle navigation</span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                        </button>
                        <a class="navbar-brand" href="#" style="margin: 0 0 0 80px;font-size: 30px ">点餐系统</a>
                    </div>


                    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                        <ul class="nav navbar-nav">
                            <li class="dropdown">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">订餐管理 <span class="caret"></span></a>
                                <ul class="dropdown-menu">
                                    <li><a href="#">Action</a></li>
                                    <li><a href="#">Another action</a></li>
                                    <li><a href="#">Something else here</a></li>
                                    <li role="separator" class="divider"></li>
                                    <li><a href="#">Separated link</a></li>
                                    <li role="separator" class="divider"></li>
                                    <li><a href="#">One more separated link</a></li>
                                </ul>
                            </li>
                            <li class="dropdown">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">菜品管理<span class="caret"></span></a>
                                <ul class="dropdown-menu">
                                    <li><a href="#">Action</a></li>
                                    <li><a href="#">Another action</a></li>
                                    <li><a href="#">Something else here</a></li>
                                    <li role="separator" class="divider"></li>
                                    <li><a href="#">Separated link</a></li>
                                    <li role="separator" class="divider"></li>
                                    <li><a href="#">One more separated link</a></li>
                                </ul>
                            </li>
                            <li class="dropdown">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">餐桌管理 <span class="caret"></span></a>
                                <ul class="dropdown-menu">
                                    <li><a href="#">Action</a></li>
                                    <li><a href="#">Another action</a></li>
                                    <li><a href="#">Something else here</a></li>
                                    <li role="separator" class="divider"></li>
                                    <li><a href="#">Separated link</a></li>
                                    <li role="separator" class="divider"></li>
                                    <li><a href="#">One more separated link</a></li>
                                </ul>
                            </li>
                            <li class="dropdown">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">登录管理 <span class="caret"></span></a>
                                <ul class="dropdown-menu">
                                    <li><a href="#">Action</a></li>
                                    <li><a href="#">Another action</a></li>
                                    <li><a href="#">Something else here</a></li>
                                    <li role="separator" class="divider"></li>
                                    <li><a href="#">Separated link</a></li>
                                    <li role="separator" class="divider"></li>
                                    <li><a href="#">One more separated link</a></li>
                                </ul>
                            </li>
                        </ul>

                    </div>
                </div>

            </nav>

<div class="row" ;style="margin-top: 50px">
    <div class="col-sm-offset-1 col-sm-3">
        <div class="input-group">
            <input type="text" class="form-control"  placeholder="桌号">
			<div class="input-group-btn">
        <button  class="btn btn-default" type="button">&nbsp;<span class="glyphicon glyphicon-search"></span></button>
      </div>

        </div>
    <ul class="list-group"style="margin-top: 30px;text-align: center;color: #28a4c9">
		    <div class="list-group">
		   <?php
			for($i=0;$i<count($j);$i++){
				
				?>
                     
				<a href="#" type="button" class="list-group-item"><?php echo $j[$i];?></a>
             <?php
			 }                  
                	?>						
								       
 
									   
									   
 </div>

        </ul>
</div>

    <div class="col-sm-6 ">
    <div class="panel-group" >
        <div class="panel panel-primary">
            <div class="panel-heading"  >
                <h4 class="panel-title">
                    <a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
                        太极殿.已选菜品
                    </a>
                </h4>
            </div>
            <div id="collapseOne" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne">

                    <div class="panel-body">
                        <div class="col-sm-6 col-lg-4 col-xs-6  ">
                            <a class="thumbnail">
                                <img src="6.jpg"/>
                                <div class="caption">
                                    龙丹
                                </div>
                            </a>
                        </div>
                    <div class=" col-sm-6 col-lg-4 col-xs-6  ">
                            <a class="thumbnail">
                                <img src="5.jpg"/>
                                <div class="caption">
                                    全家福
                                </div>
                            </a>

                    </div>
                    </div>

        </div>

</div>

</div>
</div>




    <div class="col-sm-6 ">
        <div class="panel-group" >
            <div class="panel panel-primary">
                <div class="panel-heading"  >

                    <form class="form-horizontal" method="post"  >
                    <div class="panel-title"><span class="
glyphicon glyphicon-th-list"></span>
                        可选菜品</div>

<div class="row">
    <div class="col-sm-offset-6 col-sm-6">
                    <div class="input-group">
                        <input type="text" class="form-control" name="name" placeholder="菜名">
                        <div class="input-group-btn">
<select class="btn btn-default" style="height:34px">

<option>全部</option>
<option>全部</option>
<option>全部</option>
<option>全部</option>
<option>全部</option>
<option>全部</option>

</select>


                            <button  class="btn btn-default"  type="submit" >&nbsp;
                                   
							<span class="glyphicon glyphicon-search"></span>
							</button>


                        </div>

                    </div>
    </div>
</div>

</form>
</div>
                    <div class="panel-body">
                        <div class="row">
                           <img src=<?php echo "$arr[tupian]";?> >


                        </div>







                    </div>






            </div>

        </div>
    </div>















    </div>

</body>
</html>